package com.bluedot.www.core.pojo.VO;

import java.io.Serializable;
import java.sql.Date;
import java.time.LocalDate;

/**
 * <p>
 * VIEW
 * </p>
 *
 * @author zhouxuan
 * @since 2021-08-07
 */
public class ViewUserInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private Long id;

    /**
     * 账户名（字母、数字组合），4~15，用户注册时自动生成一个账户，登陆后可以修改
     */
    private String account;

    /**
     * 性别(0：男， 1：女)
     */
    private Integer gender;

    /**
     * 邮箱格式，30个字符以内，不可修改
     */
    private String email;

    /**
     * 头像链接
     */
    private String portrait;

    /**
     * 用户姓名
     */
    private String name;

    /**
     * 兴趣爱好
     */
    private String interest;

    /**
     * 职业
     */
    private String professional;

    /**
     * 生日（年龄）格式：2021-07-24
     */
    private LocalDate birthday;

    /**
     * 手机号
     */
    private String phoneNum;

    /**
     * 最后一次登录时间
     */
    private Date lastLogin;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public Integer getGender() {
        return gender;
    }

    public void setGender(Integer gender) {
        this.gender = gender;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPortrait() {
        return portrait;
    }

    public void setPortrait(String portrait) {
        this.portrait = portrait;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getInterest() {
        return interest;
    }

    public void setInterest(String interest) {
        this.interest = interest;
    }

    public String getProfessional() {
        return professional;
    }

    public void setProfessional(String professional) {
        this.professional = professional;
    }

    public LocalDate getBirthday() {
        return birthday;
    }

    public void setBirthday(LocalDate birthday) {
        this.birthday = birthday;
    }

    public String getPhoneNum() {
        return phoneNum;
    }

    public void setPhoneNum(String phoneNum) {
        this.phoneNum = phoneNum;
    }

    public Date getLastLogin() {
        return lastLogin;
    }

    public void setLastLogin(Date lastLogin) {
        this.lastLogin = lastLogin;
    }

    @Override
    public String toString() {
        return "ViewUserInfo{" +
                "id=" + id +
                ", account=" + account +
                ", gender=" + gender +
                ", email=" + email +
                ", portrait=" + portrait +
                ", name=" + name +
                ", interest=" + interest +
                ", professional=" + professional +
                ", birthday=" + birthday +
                ", phoneNum=" + phoneNum +
                ", lastLogin=" + lastLogin +
                "}";
    }
}
